package practicaspl.dos;
import java.util.HashSet;
import java.util.Iterator;


public class Simbolos {

	private HashSet<Character> colecc_simbolos;
	private HashSet<Character> colecc_simbolos_p;

	public Simbolos() {
		colecc_simbolos = new HashSet<Character>();
		colecc_simbolos_p = new HashSet<Character>();
	}
	
	public HashSet<Character> getColecc_simbolos() {
		return colecc_simbolos;
	}

	public void setColecc_simbolos(HashSet<Character> simbolos) {
		this.colecc_simbolos = simbolos;
	}
	
	public String mostrar(HashSet<Character> coleccion) {
		String devuelve = "";
        Iterator<Character> iter = coleccion.iterator();
        while (iter.hasNext()) {
            Character simb = iter.next();
            System.out.println(simb);
            devuelve += simb;
        }
        
        return devuelve;
	}

	public HashSet<Character> getColecc_simbolos_p() {
		return colecc_simbolos_p;
	}

	public void setColecc_simbolos_p(HashSet<Character> colecc_simbolos_p) {
		this.colecc_simbolos_p = colecc_simbolos_p;
	}
	
}
